package org.springblade.modules.repair.dto.plan;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.common.utils.validation.constraints.DatePattern;
import javax.validation.constraints.NotBlank;

/**
 * @Description 首页-我的任务分页搜索
 * @Author ysq
 * @Date 2024/1/11
 */
@Data
public class PlanOrderHomePageSearchDTO {

	@DatePattern(message = "起始日期格式不正确，正确格式为：yyyy-MM-dd")
	@NotBlank(message = "起始日期不能为空")
	@ApiModelProperty(value = "起始日期")
	private String startDate;

	@DatePattern(message = "截止日期格式不正确，正确格式为：yyyy-MM-dd")
	@NotBlank(message = "截止日期不能为空")
	@ApiModelProperty(value = "截止日期")
	private String endDate;

	@ApiModelProperty(value = "工单类型")
	private Integer typeStatus;

	@ApiModelProperty(value = "搜索关键字")
	private String keyword;

	private Long curUserId;

	@ApiModelProperty(value = "排序，0-根据工单时间倒序（默认），1-根据项目")
	private Integer order;

	private String tenantId;
}
